<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>舒堡美居 一站式家居定制，个性服务</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- css --> 
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="materialize/css/materialize.min.css" media="screen,projection" />
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet"> 
<link href="css/flexslider.css" rel="stylesheet" />  
 
<!-- Vendor Styles -->
<link href="css/magnific-popup.css" rel="stylesheet"> 
<!-- Block Styles -->
<link href="css/style.css" rel="stylesheet" />
<link href="css/gallery-1.css" rel="stylesheet">
 
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?4a0f65a7b770093a33749956ad3bb14f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="wrapper"> 
	<!-- start header -->
	<header>
        <div class="navbar navbar-default navbar-static-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="index.html"><i class="icon-info-blocks material-icons"></i>舒堡美居</a>
                </div>
                <div class="navbar-collapse collapse ">
                    <ul class="nav navbar-nav">
                        <li><a class="waves-effect waves-dark" href="index.html">首页</a></li> 
						<li><a class="waves-effect waves-dark" href="about.html">关于我们</a></li> 
						<li><a class="waves-effect waves-dark" href="services.html">工程案例</a></li>
                        <li class="active"><a class="waves-effect waves-dark" href="category.html">产品展示</a></li>
                        <li><a class="waves-effect waves-dark" href="contact.html">联系我们</a></li>
                    </ul>
                </div>
            </div>
        </div>
	</header>
	<!-- end header -->
	
	<section id="content">
	<div class="container">
		<div class="row"> 
			<div class="col-md-12">
				<div class="about-logo">
					<h3><span class="color" id="title"></span></h3>
				</div>  
			</div>
		</div> 
	</div>
	</section>	
	
	<!-- Start Gallery 1-2 -->
    <section id="gallery-1" class="content-block section-wrapper gallery-1">
    	<div class="container">
            <div class="row">
                <div id="isotope-gallery-container">
                    <!--<div class="col-md-4 col-sm-6 col-xs-12 gallery-item-wrapper">
                        <div class="gallery-item">
                            <div class="gallery-thumb">
                                <img src="img/works/1.jpg" class="img-responsive" alt="1st gallery Thumb">
                                <div class="image-overlay"></div>
                                <a href="img/works/1.jpg" class="gallery-zoom"><i class="fa fa-eye"></i></a>
                                
                            </div>
                        </div>
                    </div>-->
                    
                </div>
                <!-- /#productsList -->
            </div>
            <!-- /.row --> 
        <!-- /.container -->
		</div>
    </section>
    <!--// End Gallery 1-2 -->  
	</div>
	
	<footer>
	<div id="sub-footer" style="padding: 0; margin: 0; border: 0;">
		<div class="container">
			<div class="row">
				<div class="col-lg-6">
					<div class="copyright">
						<p>
							Copyright &copy; 2018 <a target="_blank" href="http://www.ikazs.com">广州韩氏家居贸易有限公司</a> 版权所有 粤ICP备16000841号
						</p>
					</div>
				</div>
				<div class="col-lg-6">
				</div>
			</div>
		</div>
	</div>
	</footer>
</div>
<a href="#" class="scrollup waves-effect waves-dark"><i class="fa fa-angle-up active"></i></a>

<script src="js/jquery.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="materialize/js/materialize.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/jquery.fancybox-media.js"></script>  
<script src="js/jquery.flexslider.js"></script>
<script src="js/animate.js"></script>
<!-- Vendor Scripts -->
<script src="js/modernizr.custom.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/animate.js"></script> 
<script type="text/javascript" src="js/jquery.lazyload.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//********根据url的锚点来区分产品类别********
		var hash = window.location.hash;
		var type = hash.substring(1, hash.length);
		var count = 0;
		var currCategory = "";
		//显示当前分类
		switch(type){
			case "hongmu": currCategory = "红木家居"; count = 13; break;
			case "banmu": currCategory = "板木家居"; count = 9; break;
			case "shimu": currCategory = "实木家居"; count = 10; break;
			case "bangong": currCategory = "办公家居"; count = 15; break;
			case "dizhonghai": currCategory = "地中海乡村风格"; count = 8; break;
			case "fashi": currCategory = "法式风格"; count = 10; break;
			case "hanshi": currCategory = "韩式风格"; count = 9; break;
			case "meishi": currCategory = "美式风格"; count = 14; break;
			case "shafa": currCategory = "现代沙发"; count = 16; break;
			case "chaji": currCategory = "茶几电视柜餐台"; count = 16; break;
			case "ruantichuang": currCategory = "软体床"; count = 11; break;
			case "chuangdian": currCategory = "床垫"; count = 13; break;
			default: currCategory="";count=0;break;
		}
		$("#title").text(currCategory);
		document.title = currCategory+' 舒堡美居';
		
		//显示产品图片
		if(count == 0){
			$("#title").text('暂无该分类的产品，期待上线！');
		}else{
			var htmlStr = "";
			for(var i=1; i<=count; i++){
				var imgSrc = "img/works/"+ type + "/" + i + ".jpg";
				
				htmlStr += '<div class="col-md-4 col-sm-6 col-xs-12 gallery-item-wrapper isotope-item">'
					+ '<div class="gallery-item">'
					+ '<div class="gallery-thumb">'
					+ '<img src="'+ imgSrc + '" class="img-responsive lazy" alt="'+ currCategory +'">'
					+ '<div class="image-overlay"></div>'
					+ '<a href="'+ imgSrc + '" class="gallery-zoom"><i class="fa fa-eye"></i></a>'
					+ '</div></div></div>';
			}
			$("#isotope-gallery-container").html(htmlStr);
	
	        $("img.lazy").lazyload({
	            effect : "fadeIn",  //加载特效，参数值：show(直接显示),fadeIn(淡入),slideDown(下拉)等,常用fadeIn 
	            threshold : 200,   //提前加载图片高度200px
	            skip_invisible : true //忽略不可见的图片
	        });
		}
   });
</script>
<script src="js/custom.js"></script>

</body>
</html>